Function |format
std/text/compose::|format
Usage
|format(format, entries)
Parameters
↳ format:
string
↳ entries:
StringMap
(std/data/string_map::StringMap
)
Return
↴ string
Format string.
Return string formatted with given entries.
Format string is expected to contains braced placeholders, like: "Hello {name}!"
.
If a formatting error happens, like missing key of incorrect format string, an empty string is returned.